<!--
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-09-11 08:37:19
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-09-17 09:10:38
 * @FilePath: \23WRX\city\src\pages\components\Left1.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div>
        <Title :title="title"></Title>
        <div ref="Bottom1" style="height:150px;margin-top: 10px;"></div>
    </div>
</template>
<script>
import { Line } from '@antv/g2plot';

export default {
    data() {
        return {
            title: '服务事项概览',

        }
    },
    methods: {
        loadLine() {
            fetch('https://gw.alipayobjects.com/os/bmw-prod/1d565782-dde4-4bb6-8946-ea6a38ccf184.json')
                .then((res) => res.json())
                .then((data) => {
                    const line = new Line(this.$refs.Bottom1, {
                        data,
                        padding: 'auto',
                        xField: 'Date',
                        yField: 'scales',
                        xAxis: {
                            // type: 'timeCat',
                            tickCount: 5,
                        },
                    });

                    line.render();
                });


        }
    },
    mounted() {
    this.loadLine()
  }


}
</script>
<style lang="less" scoped></style>